var token = $("#token").val();
var region = $(".seach_ip_inpt").val();

function list() {
    layui.use('table', function() {
        var table = layui.table;
        var region = $(".seach_ip_inpt").val();

        table.render({
            elem: '#test',
            url: '/line/list',
            cellMinWidth: 80,
            cols: [
                [
                    { field: 'province', title: '省份'}
                    , { field: 'city', title: '城市'}
                    , { field: 'operator', title: '运营商'}
                    , { field: 'server_address', title: 'IP地址'}
                    , { toolbar: '#barDemo',title: '状态' }
                ]
            ],
            where: {
                _token: token,
                region: region
            },
            method: 'get',
            done: function(res, curr, count) {
             
            }

        });
    });
}
list();
$(".sel").click(function() {

    var ipuser = $(".seach_ip_inpt").val();
    var index = layer.load(2, {
        shade: [0.1,'#fff']
        , time: 1000,
        end:function(e){
            list();
        }
    });

})